#pragma once

#include <d3dx10.h>

class Triangle
{
public:
	Triangle(ID3D10Device* pDevice);
	~Triangle(void);

	HRESULT Initialize();
	void Render();
private:
	ID3D10Device*           pDevice;
	ID3D10Effect*           pEffect;
	ID3D10EffectTechnique*  pTechnique;
	ID3D10InputLayout*      pVertexLayout;
	ID3D10Buffer*           pVertexBuffer;
	UINT stride;
	UINT offset;

	HRESULT InitializeVertexLayout();
	HRESULT InitializeVertexBuffer();
	HRESULT InitializeEffect();
};
